#ifndef QMYNaracki_H
#define QMYNaracki_H

#include "qmybasewidget.h"
#include "ui_qmyNaracki.h"
#include "qNarackivnes.h"
#include "qNarackikorekcija.h"
#include "qNarackilista.h"
#include "qnarackiWizard.h"

class QMyNaracki : public QMyBaseWidget
{
	Q_OBJECT

public:
	QMyNaracki(QWidget *parent = 0);
	~QMyNaracki();
	void sendPrintMessage();
    QStandardItemModel* getModel();
    QStandardItemModel* getModel2();
    QStringList getIspratnicaInfo();
    virtual void refresh();
    ;

private:
	Ui::QMyNarackiClass ui;
	QNarackiVnes *NarackiVnes;
	QNarackiKorekcija *NarackiKorekcija;
	QNarackiLista *NarackiLista;
    QNarackiWizard *NarackiWizard;
	int m_row;

protected:
	virtual void pressF2();
	virtual void pressF3();
	virtual void pressF4();
    virtual void pressF6();
	virtual void pressEscape();
	void closeAllForm();
signals:
	void signCloseMyWidget();
	void signKomintentiFromIspratnica(QWidget*, QString);
	void signArtikliFromIspratnica(QWidget*, QString);
	void signProizvodiFromNalog(QWidget*, QString);
    void signPrint();
	void disablePrint(bool);
public slots:
	void closeWLista();
    void procF2();
    void procF3();
    void procF6();
    void procDel();
	void closeW();
	void callKomintenti(QWidget* myobj, QString text);
	void callArtikli(QWidget* myobj, QString text);
    void callProizvodi(QWidget* myobj, QString text);
};

#endif // QMYNaracki_H
